FrameLib  2.0
DSP processing with frames of arbitrary timing and length
FrameLib_Proxy Struct Reference

a virtual struct allowing for extensible communication to/from the host environment. More...

#include <FrameLib_Types.h>

Inheritance diagram for FrameLib_Proxy:
FrameLib_ErrorReporter::HostNotifier

Public Member Functions

virtual ~FrameLib_Proxy ()
 

Detailed Description

a virtual struct allowing for extensible communication to/from the host environment.

This structure is used to facilitate host environment communication with FrameLib objects. On construction each FrameLib_Object takes a pointer to a proxy which may be a nullptr or a valid pointer to a type inheriting from FrameLib_Proxy. By default the object does nothing, but hosts may wish to use inheriting types to store typesafe pointers to owning objects (thus allowing the owning object to be retrieved from FrameLib classes.

More importantly, specific objects (such as FrameLib_ToHost, FrameLib_FromHost and FrameLib_Read) make use of FrameLib_Proxy to allow custom host-specific functionality. In these cases such classes extend FrameLib_Proxy into abstract interfaces which a host can later implement. Pointers to the proxy are dynamically cast to the desired type in order to ensure that host support has been provided. It is advised that FrameLib_Proxy is always inherited as a virtual in order to allow a single type to multiply inherit different functionaility.

Constructor & Destructor Documentation

◆ ~FrameLib_Proxy()

virtual FrameLib_Proxy::~FrameLib_Proxy ( )
inlinevirtual

A virtual destructor


The documentation for this struct was generated from the following file: